<template>
  <div class="body">
    <Header title="搜索结果" to='/'></Header>
    <!-- <img :src="scanImg" alt=""> -->
    <div class="desc">根据上述图片，该垃圾可能属于下面之类：</div>
    <div class="containers" v-for="(item) in scanList" :key="item.trust">
      <div class="container">
        <div class="title">垃圾名称：{{item.name}}</div>
        <hr style="border:0;background-color:rgba(231, 227, 227, 1);height:1px;">
        <div class="type">垃圾类型：{{item.lajitip}} </div>
      </div>
    </div>
  </div>
</template>

<script>
import { garbageMixin } from '../../utils/mixin'
import Header from '../common/Header'

export default {
  mixins: [garbageMixin],
  components: {
    Header
  },
  data () {
    return {
    }
  },
  mounted () {
  }
}
</script>

<style lang="scss" scoped>
@import '../../assets/styles/global';
.body {
  background-color: skyblue;
  height: 1000px;
}
.desc {
  width: 100%;
  height: 24px;
  line-height: 24px;
  font-size: 16px;
  padding-left: 10px;
}
.containers {
  margin-top:15px;
  .container {
    width: 90%;
    height: 75px;
    margin: 10px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 2%;
    font-size: 14px;
    // overflow: hidden;
    position: relative;
    .title {
      margin: 5px 0;
    }
    .type {
      height: 48px;
      line-height: 24px;
      @include ellipsis2(2);
    }
  }
}

</style>
